Returns the HTML inside the tag of the document.
#include <IE.au3>
_IEBodyReadHTML ( ByRef $o_object )
Parameters
$o_object | Object variable of an InternetExplorer.Application, Window or Frame object |
Return Value
Success: | Returns HTML included in the of the docuement |
Failure: | Returns 0 and sets @ERROR |
@Error: | 0 ($_IEStatus_Success) = No Error |
3 ($_IEStatus_InvalidDataType) = Invalid Data Type | |
@Extended: | Contains invalid parameter number |
Remarks
This function uses the .innerHTML property of the document Body. .innerHTML is available for nearly all DOM elements.
Related
_IEBodyReadText, _IEBodyWriteHTML
Example
; *******************************************************
; Example 1 - Open a browser with the basic example, ready the body HTML,
; append new HTML to the original and write it back to the browser
; *******************************************************
;
#include <IE.au3>
$oIE = _IE_Example ("basic")
$sHTML = _IEBodyReadHTML ($oIE)
$sHTML = $sHTML & "<p><font color=red size=+5>Big RED text!</font>"
_IEBodyWriteHTML ($oIE, $sHTML)